import { ApiProperty } from '@nestjs/swagger'
import { Column, Entity } from 'typeorm'
import { CommonEntity } from '~/common/entity/common.entity'

@Entity()
export class GoodEntity extends CommonEntity {
  @Column()
  @ApiProperty({ description: '商品名称' })
  name: string

  @Column()
  @ApiProperty({ description: '商品价格' })
  price: number

  @Column()
  @ApiProperty({ description: '商品描述' })
  description: string

  @Column()
  @ApiProperty({ description: '商品图片' })
  image: string

  @Column()
  @ApiProperty({ description: '商品尺寸' })
  size: string

  @Column()
  @ApiProperty({ description: '商品颜色' })
  color: string
}
